package org.qydjk.common.pojo.user;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by ASUS on 2017/12/26.
 */
@Entity
@Table(name = "qy_user_comment", schema = "qydjk", catalog = "")
public class UserComment {
    private Integer id;
    private Integer userId;
    private String username;
    private String phone;
    private String headurl;
    private Integer orderSellerId;
    private String orderSellerNo;
    private String content;
    private Integer productId;
    private String productName;
    private Integer sellerId;
    private String sellerName;
    private Double star;
    private Integer isRecommend;
    private Date createTime;
    private Date updateTime;
    private Integer status;
    private Integer isDummy;
    private String replyContent;
    private Date replyTime;
    private Integer organizationSeiviceScore;
    private Integer organizationEnvironmentScore;
    private Integer organizationSpeedScore;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "user_id")
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Basic
    @Column(name = "username")
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Basic
    @Column(name = "phone")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Basic
    @Column(name = "headurl")
    public String getHeadurl() {
        return headurl;
    }

    public void setHeadurl(String headurl) {
        this.headurl = headurl;
    }

    @Basic
    @Column(name = "order_seller_id")
    public Integer getOrderSellerId() {
        return orderSellerId;
    }

    public void setOrderSellerId(Integer orderSellerId) {
        this.orderSellerId = orderSellerId;
    }

    @Basic
    @Column(name = "order_seller_no")
    public String getOrderSellerNo() {
        return orderSellerNo;
    }

    public void setOrderSellerNo(String orderSellerNo) {
        this.orderSellerNo = orderSellerNo;
    }

    @Basic
    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Basic
    @Column(name = "product_id")
    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    @Basic
    @Column(name = "product_name")
    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    @Basic
    @Column(name = "seller_id")
    public Integer getSellerId() {
        return sellerId;
    }

    public void setSellerId(Integer sellerId) {
        this.sellerId = sellerId;
    }

    @Basic
    @Column(name = "seller_name")
    public String getSellerName() {
        return sellerName;
    }

    public void setSellerName(String sellerName) {
        this.sellerName = sellerName;
    }

    @Basic
    @Column(name = "star")
    public Double getStar() {
        return star;
    }

    public void setStar(Double star) {
        this.star = star;
    }

    @Basic
    @Column(name = "is_recommend")
    public Integer getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(Integer isRecommend) {
        this.isRecommend = isRecommend;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "update_time")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "status")
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Basic
    @Column(name = "is_dummy")
    public Integer getIsDummy() {
        return isDummy;
    }

    public void setIsDummy(Integer isDummy) {
        this.isDummy = isDummy;
    }

    @Basic
    @Column(name = "reply_content")
    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    @Basic
    @Column(name = "reply_time")
    public Date getReplyTime() {
        return replyTime;
    }

    public void setReplyTime(Date replyTime) {
        this.replyTime = replyTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        UserComment that = (UserComment) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (userId != null ? !userId.equals(that.userId) : that.userId != null) return false;
        if (username != null ? !username.equals(that.username) : that.username != null) return false;
        if (phone != null ? !phone.equals(that.phone) : that.phone != null) return false;
        if (headurl != null ? !headurl.equals(that.headurl) : that.headurl != null) return false;
        if (orderSellerId != null ? !orderSellerId.equals(that.orderSellerId) : that.orderSellerId != null)
            return false;
        if (orderSellerNo != null ? !orderSellerNo.equals(that.orderSellerNo) : that.orderSellerNo != null)
            return false;
        if (content != null ? !content.equals(that.content) : that.content != null) return false;
        if (productId != null ? !productId.equals(that.productId) : that.productId != null) return false;
        if (productName != null ? !productName.equals(that.productName) : that.productName != null) return false;
        if (sellerId != null ? !sellerId.equals(that.sellerId) : that.sellerId != null) return false;
        if (sellerName != null ? !sellerName.equals(that.sellerName) : that.sellerName != null) return false;
        if (star != null ? !star.equals(that.star) : that.star != null) return false;
        if (isRecommend != null ? !isRecommend.equals(that.isRecommend) : that.isRecommend != null) return false;
        if (createTime != null ? !createTime.equals(that.createTime) : that.createTime != null) return false;
        if (updateTime != null ? !updateTime.equals(that.updateTime) : that.updateTime != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (isDummy != null ? !isDummy.equals(that.isDummy) : that.isDummy != null) return false;
        if (replyContent != null ? !replyContent.equals(that.replyContent) : that.replyContent != null) return false;
        if (replyTime != null ? !replyTime.equals(that.replyTime) : that.replyTime != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (userId != null ? userId.hashCode() : 0);
        result = 31 * result + (username != null ? username.hashCode() : 0);
        result = 31 * result + (phone != null ? phone.hashCode() : 0);
        result = 31 * result + (headurl != null ? headurl.hashCode() : 0);
        result = 31 * result + (orderSellerId != null ? orderSellerId.hashCode() : 0);
        result = 31 * result + (orderSellerNo != null ? orderSellerNo.hashCode() : 0);
        result = 31 * result + (content != null ? content.hashCode() : 0);
        result = 31 * result + (productId != null ? productId.hashCode() : 0);
        result = 31 * result + (productName != null ? productName.hashCode() : 0);
        result = 31 * result + (sellerId != null ? sellerId.hashCode() : 0);
        result = 31 * result + (sellerName != null ? sellerName.hashCode() : 0);
        result = 31 * result + (star != null ? star.hashCode() : 0);
        result = 31 * result + (isRecommend != null ? isRecommend.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (isDummy != null ? isDummy.hashCode() : 0);
        result = 31 * result + (replyContent != null ? replyContent.hashCode() : 0);
        result = 31 * result + (replyTime != null ? replyTime.hashCode() : 0);
        return result;
    }
    @Basic
    @Column(name = "organization_seivice_score")
    public Integer getOrganizationSeiviceScore() {
        return organizationSeiviceScore;
    }

    public void setOrganizationSeiviceScore(Integer organizationSeiviceScore) {
        this.organizationSeiviceScore = organizationSeiviceScore;
    }
    @Basic
    @Column(name = "organization_environment_score")
    public Integer getOrganizationEnvironmentScore() {
        return organizationEnvironmentScore;
    }

    public void setOrganizationEnvironmentScore(Integer organizationEnvironmentScore) {
        this.organizationEnvironmentScore = organizationEnvironmentScore;
    }
    @Basic
    @Column(name = "organization_speed_score")
    public Integer getOrganizationSpeedScore() {
        return organizationSpeedScore;
    }

    public void setOrganizationSpeedScore(Integer organizationSpeedScore) {
        this.organizationSpeedScore = organizationSpeedScore;
    }
}
